//
//  SLFeedTableViewCell.m
//  SoccerLottery
//
//  Created by chuanshuangzhang on 15/12/24.
//  Copyright © 2015年 chuanshuangzhang. All rights reserved.
//

#import "SLFeedTableViewCell.h"

@implementation SLFeedTableViewCell


- (void)setResult:(NSString *)result
{
    _resultLabel.text = result;
    
    if([result containsSubString:@"赢"]){
        _resultLabel.textColor = [UIColor redColor];
    }else if([result containsSubString:@"输"]){
        _resultLabel.textColor = [UIColor grayColor];
    }else if([result isEqualToString:@"走"]){
        _resultLabel.textColor = [UIColor greenColor];
    }
}
@end
